package com.watch.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.watch.system.model.bo.UserFormBO;
import com.watch.system.model.dto.UserAuthInfo;
import com.watch.system.model.entity.CarAd;
import com.watch.system.model.entity.CarUser;
import com.watch.system.model.form.AdForm;
import com.watch.system.model.query.CarAdPageQuery;
import com.watch.system.model.query.CarUserPageQuery;
import com.watch.system.model.query.UserPageQuery;
import com.watch.system.model.vo.*;
import com.watch.system.plugin.mybatis.annotation.DataPermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户持久层
 *
 * @author haoxr
 * @since 2022/1/14
 */
@Mapper
public interface CarAdMapper extends BaseMapper<CarAd> {

    /**
     * 获取用户分页列表
     *
     * @param page
     * @param queryParams 查询参数
     * @return
     */
    Page<CarAdPageVO> selectAdPage(Page<CarAdPageVO> page, CarAdPageQuery queryParams);

    int updateAd(AdForm adForm);

    int insertAd(AdForm adForm);


    int insertAdImport(CarAdImportVO carAdExportVO);

    List<CarAdExportVO> listExportAds(CarAdPageQuery queryParams);
}
